/* 
 * File:   data_editor.hpp
 * Author: jolo
 *
 * Created on 13. Oktober 2011, 13:21
 */

#ifndef WIDGETS_DATA_EDITOR_HPP
#define	WIDGETS_DATA_EDITOR_HPP

#include "widget_panel.hpp"

#include <core/core.hpp>

namespace model
{
    class entity;
    typedef shared_ptr<entity> entity_ptr;
}

namespace widgets
{
    class labelled_line_edit;

    class data_editor : public widget_panel
    {
        Q_OBJECT
    public:
        data_editor(model::entity_ptr e, QWidget* p);
        virtual ~data_editor();

        model::entity_ptr entity() const
        {
            return e_;
        }
        
    private:
        model::entity_ptr e_;
    };
}

#endif	/* DATA_EDITOR_HPP */

